<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <link rel="stylesheet" type="text/css" href="../css/order.css">

    <style type="text/css">

        .a1{
            width: 100px;
            height: 50px;
          background: black;
            margin-top: 50px ;
            color: white;
            cursor: pointer;
        }




    </style>

</head>

<body>
<header id="=header">

    <div class="con">
        <div class="img"><img src="../img/1.1.png" alt="Hayoe"/></div>
        <ul class="left" >
            <li><a href="/toshopping">商城</a></li>
            <li><a href="/Comment/toComments">论坛</a></li>
            <li><a href="#">客服</a></li>

        </ul>
        <ul class="right">
            <li><a href="/User/usertoLogin">登录</a></li>
            <li><a href="/User/usertoRegister">注册</a></li>
            <li><a href="#">关于</a></li>

        </ul>
    </div>

</header>
<body>
<table border="1" width="1000">
    <thead>
    <tr>
        <td>游戏id</td>
        <td>游戏名字</td>
        <td>游戏价格</td>


    </tr>
    </thead>
    <tr th:each="games:${list}" >

        <td th:text="${games.gamesId}"></td>
        <td th:text="${games.name}"></td>
        <td th:text="${games.price}"></td>


    </tr>

</table>
<form action="/Order/save" method="POST">
    <input type="hidden" value="1" name="orders_id">
    <input type="hidden" value="CSGO" name="name"  >
    <input type="hidden" value="0"  name="price"  >


    <input type="submit" value="购买"  class="a1" onclick="if  (!(confirm('你确定购买这个游戏吗')))
                return false" >

</form>
</body>


